import 'package:common/base/base_state.dart';
import 'package:common/base/base_stateful_widget.dart';
import 'package:flutter/cupertino.dart';

import 'awake_by_native_page_body.dart';

class AwakeByNativePage extends BaseStatefulWidget {
  const AwakeByNativePage({super.key});

  @override
  State<AwakeByNativePage> createState() => _AwakeByNativePageState();
}

class _AwakeByNativePageState extends BaseState<AwakeByNativePage> {

  @override
  void onStateInit() {
    rxTitle.value = "被原生唤起flutter的页面";
  }

  @override
  bool onNeedBack() {
    return true;
  }

  @override
  bool onNeedCachePage() {
    return true;
  }

  @override
  Widget onBodyCreate() {
    AwakeByNativePageBody  awakeByNativePageBody = AwakeByNativePageBody();
    return awakeByNativePageBody.createBody(context);
  }
}